package com.chinasofti.etc.alcohol.dao;

import com.chinasofti.etc.alcohol.dao.model.Commodity;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.chinasofti.etc.alcohol.dao.model.Type;

import java.util.List;

/**
 * <p>
 *  Mapper 接口
 * </p>
 *
 * @author lucas
 * @since 2019-05-29
 */
public interface CommodityMapper extends BaseMapper<Commodity> {

    List<Commodity> newSorting();

    Commodity toOne(String name);

    List<Commodity> salesRanking(String name);

    List<Commodity> query(Type type);

    Integer queryCount(Type type);

    Commodity getInfo(String commodityNumber);
}
